<?php

namespace App\Models\OpenShop\InvestmentPromotion;

use App\Models\BaseModel;
use DateTimeInterface;

class OpenShopPreparationOrderStreamModel extends BaseModel
{
    protected $table = 'open_shop_preparation_order_refund_stream';

    public const BASE_DESIGN_AREA = 30;

    protected $fillable = [
        'orderNo',
        'preparationNo',
        'refundSerialNo',
        'money',
        'type',
        'refundType',
        'remark',
        'refuseRemark',
        'status',
        'isDeleted',
        'createdAt',
        'createdByUid',
        'updatedAt',
        'updatedByUid',
    ];

    protected function serializeDate(DateTimeInterface $date)
    {
        return $date->format("Y-m-d H:i:s");
    }
}
